<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:s="http://jboss.org/schema/seam/taglib"
                xmlns:m="http://jboss.org/schema/seam/mail"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
      
    <m:message>
        <m:from name="Seam" address="do-not-reply@jboss.com" />
        <m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
        <m:subject>#{subject}</m:subject>
        <m:body>
            <html>
                <body>
                    <ui:insert name="body">
                        This is the default body, specified by the template.
                    </ui:insert>
                </body>
            </html>
            <f:facet name="alternative">
                <ui:insert name="alternative">
                    <h:outputText>Sorry, your mail reader doesn't support html.</h:outputText>
                </ui:insert>
            </f:facet>
        </m:body>
     </m:message>
     
     <ui:insert name="successMessage">
         <html>
             <body>
             	 <p>This email was sent directly from the view without invoking a bean - just link to a page which contains an &lt;m:message&gt; tag!</p>
                 <p>The email has been successfully sent. <s:link view="/index.xhtml">Click here</s:link> to return to the index.</p>
             </body>
         </html>
    </ui:insert>

</ui:composition>